package org.jeecg.modules.charge.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.Objects;

/**
 * <p>
 * 前端表格实体类
 * <p>
 * 
 * @Author Steve
 * @Since 2019-10-29
 */
public class ChargeTables implements Serializable{

    private static final long serialVersionUID = 1L;

    /*标题*/
    private String title;

    /*字段位置*/
    private String align;

    /*长度*/
    private String width;

    /*实体类名称*/
    private String dataIndex;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlign() {
        return align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getDataIndex() {
        return dataIndex;
    }

    public void setDataIndex(String dataIndex) {
        this.dataIndex = dataIndex;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChargeTables that = (ChargeTables) o;
        return Objects.equals(title, that.title) &&
                Objects.equals(align, that.align) &&
                Objects.equals(width, that.width) &&
                Objects.equals(dataIndex, that.dataIndex);
    }

    @Override
    public int hashCode() {

        return Objects.hash(title, align, width, dataIndex);
    }
}
